<?
	$info1 = list_details($id,'array');
	$info1 = $info1[0];
	$info = array_merge($info1,$info2);


?> 
	<tr <? if($errorCode==3) echo "class='err'"; ?>><td width='150'>First Name:</td>
		<td>
			<input type='text' name='info[firstname]' value='<?=$info[firstname];?>'>
		</td>
	</tr>
	<tr <? if($errorCode==4) echo "class='err'"; ?>><td width='150'>Last Name:</td>
		<td>
			<input type='text' name='info[lastname]' value='<?=$info[lastname];?>'>
		</td>
	</tr>
	<tr <? if($errorCode==14) echo "class='err'"; ?>>
		<td width='150'>Company Name (optional):</td>
		<td>
			<input class='txt' type='text' maxlength='32' name='company_name' value='<?=$info[company_name];?>' onKeyUp='checkCompany(this.form);'>
		</td>
	</tr>
	<tr <? if($errorCode==5) echo "class='err'"; ?>><td width='150'>E-mail:</td>
		<td>
			<input type='text' name='info[email]' value='<?=$info[email];?>'>
		</td>
	</tr>
	<tr <? if($errorCode==6) echo "class='err'"; ?>><td width='150'>Phone:</td>
		<td>
			<input type='text' name='info[phone]' value='<?=$info[phone];?>'>
		</td>
	</tr>
	<tr <? if($errorCode==7) echo "class='err'"; ?>><td width='150'>Address 1:</td>
		<td>
			<input type='text' name='info[address1]' value='<?=$info[address1];?>'>
		</td>
	</tr>
	<tr <? if($errorCode==7) echo "class='err'"; ?>><td width='150'>Address 2:</td>
		<td>
			<input type='text' name='info[address2]' value='<?=$info[address2];?>'>
		</td>
	</tr>
	<tr <? if($errorCode==8) echo "class='err'"; ?>><td width='150'>City:</td>
		<td>
			<input type='text' name='info[city]' value='<?=$info[city];?>'>
		</td>
	</tr>
	<tr <? if($errorCode==9) echo "class='err'"; ?>><td width='150'>State:</td>
		<td>
			<input type='text' name='info[state]' value='<?=$info[state];?>'>
		</td>
	</tr>
	<tr <? if($errorCode==10) echo "class='err'"; ?>><td width='150'>ZIP/Postal code:</td>
		<td>
			<input type='text' name='info[zip]' value='<?=$info[zip];?>'>
		</td>
	</tr>
	<tr <? if($errorCode==11) echo "class='err'"; ?>>
		<td width='150'>Country:</td>
		<td>
			<select id='country' name='country' onChange="javascript: showVAT('country');">
				<? echo get_countries($info['country'], TRUE); ?>
			</select>
		</td>
	</tr>
	<tr <? if($errorCode==15) echo "class='err'"; ?>>
		<td width='150'><div id='vat_text'>European Union Customers:</div></td>
		<td>
			<div id='vat_radio'>
			<input class='txt' type='radio' name='vat_registered' value='0' checked onClick='javascript: showVatNum(false);'> I am not VAT registered<br>
			<input class='txt' type='radio' name='vat_registered' value='1' onClick='javascript: showVatNum(true);'> I am VAT registered
			</div>
		</td>
	</tr>
	<tr <? if($errorCode==11) echo "class='err'"; ?>>
		<td><div id="vat_input">VAT Number:</div></td>
		<td>
			<div id="vat_input1">
			<input class='txt' type='text' maxlength='32' name='vat_num' value='<?=$info['vat_num']?>' onFocus="javascript: checkCompany(document.daForm);">
			</div>
		</td>
	</tr>